package com.aos.erp.manager.model.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @program: erp
 * @description:用户职位关联
 * @author: tanzhiyu
 * @create: 2018-11-07 13:25
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户职位")
@TableName("t_sys_position_user")
public class PositionUser implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户职位关联ID")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("职位ID")
    @TableField("position_id")
    private Long positionId;
}
